package com.fjb.pojo.cart;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 购物车
 * </p>
 *
 * @author hemiao
 * @since 2020-02-05
 */
public class ShoppingCart implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 主账号id
     */
    private Integer mainUserId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 产品id
     */
    private Integer productId;

    private Integer createUserId;

    private LocalDateTime createTime;

    /**
     * 购买数量
     */
    private Integer cartNumber;

    /**
     * 属性 sku id
     */
    private Integer attrSkuId;

    /**
     * 当时选中的价格
     */
    private BigDecimal skuPrice;

    /**
     * 属性sku json  ：{"titleCode":"6035725008","titleName":"颜色","attrCodeOne":"2464190446","attrCodeTwo":"0","attrName":"黑色"}
     */
    private String attrSkuJson;

    private Integer updateUserId;

    private LocalDateTime updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getMainUserId() {
        return mainUserId;
    }

    public void setMainUserId(Integer mainUserId) {
        this.mainUserId = mainUserId;
    }
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }
    public Integer getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public Integer getCartNumber() {
        return cartNumber;
    }

    public void setCartNumber(Integer cartNumber) {
        this.cartNumber = cartNumber;
    }
    public Integer getAttrSkuId() {
        return attrSkuId;
    }

    public void setAttrSkuId(Integer attrSkuId) {
        this.attrSkuId = attrSkuId;
    }
    public BigDecimal getSkuPrice() {
        return skuPrice;
    }

    public void setSkuPrice(BigDecimal skuPrice) {
        this.skuPrice = skuPrice;
    }
    
    public String getAttrSkuJson() {
		return attrSkuJson;
	}

	public void setAttrSkuJson(String attrSkuJson) {
		this.attrSkuJson = attrSkuJson;
	}

	public Integer getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(Integer updateUserId) {
        this.updateUserId = updateUserId;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "ShoppingCart{" +
        "id=" + id +
        ", mainUserId=" + mainUserId +
        ", userId=" + userId +
        ", productId=" + productId +
        ", createUserId=" + createUserId +
        ", createTime=" + createTime +
        ", cartNumber=" + cartNumber +
        ", attrSkuId=" + attrSkuId +
        ", skuPrice=" + skuPrice +
        ", attrSkuJson=" + attrSkuJson +
        ", updateUserId=" + updateUserId +
        ", updateTime=" + updateTime +
        "}";
    }
}
